﻿using System;

namespace OpenLS.Spreadsheet
{
    public class LinkNavigateEventArgs: EventArgs
    {
        private readonly Cell _cell;
        private readonly Uri _url;

        internal LinkNavigateEventArgs(Cell cell, Uri uri)
        {
            _cell = cell;
            _url = uri;
        }
        /// <summary>
        /// Get the cell that was clicked
        /// </summary>
        public Cell Cell
        {
            get { return _cell; }
        }

        /// <summary>
        /// Get the target uri
        /// </summary>
        public Uri Url
        {
            get { return _url; }
        }
    }
}